package com.gong.gongcloudpicture1;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;

@SpringBootApplication
@MapperScan("com.gong.gongcloudpicture1.mapper")
//这是一个代理注解, 给这个类增强, 如果想要获取到这个代理, 可以在任何地方用AopContext.currentProxy()这个方法得到当前这个类的代理类
@EnableAspectJAutoProxy(exposeProxy = true)
//该注解是启用redis 存储session
@EnableRedisHttpSession(redisNamespace = "user:session")
@Slf4j
public class GongCloudPicture1Application {

    public static void main(String[] args) {
        SpringApplication.run(GongCloudPicture1Application.class, args);
        log.info("项目启动成功");
    }

}
